#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n, arr[200],i,j,t;
	scanf("%d", &n);
	printf("\n");
	for (i = 0; i < n;i++)
	     scanf("%d", &arr[i] );
	printf("\n");
	for (j = 0; j < n - 1; j++)
	{

		for (i = 0; i<n - 1 - j; i++)
		{

			if (arr[i]>arr[i + 1])
			{
				t = arr[i];
				arr[i] = arr[i + 1];
				arr[i + 1] = t;
			}
		}
	}
	for (i = 0; i < n; i++)
		printf("%d ", arr[i]);
	printf("\n");
	return 0;
}